package boogie;

import boogie.game.GameState;
import boogie.game.sprite.Sprite;
import java.awt.Color;
import java.awt.Graphics2D;

/**
 *
 * @author Boogie
 */
public class TestSprite extends Sprite{

    public TestSprite(GameState gameState) {
        super(gameState,gameState.getGame().width/2,100,100,100);
        
    }
    
    @Override
    public void onUpdate() {
       
        this.setPosition(this.getX()+1,this.getY()+1);
    }

    @Override
    public void onDraw(Graphics2D g) {
        g.setColor(Color.red);        
        g.fillRect(this.getX() , this.getY(), this.getWidth()  ,this.getHeight());
    }
    
}
